﻿@model IList<Forest.Cat.Domain.Entities.Ranking>  
<ul>
    @foreach (var mode in Model) {
        var length = 12;
        var text = mode.Text;
        var countText = String.Empty;
        if (!String.IsNullOrWhiteSpace(mode.Count)) {
            countText += "（" + mode.Count + "）";
            length = length - countText.Length;
        }
        <li><a href="@mode.NavigateUrl" title="@(mode.Text + countText) " target="_blank">·
            @((mode.Text.Length > length ? mode.Text.Substring(0, length) : mode.Text) + countText)
        </a></li>
    }
</ul>
